package com.mastercard.assets.jpa;

import java.io.Serializable;
import javax.persistence.*;
import java.sql.Timestamp;


/**
 * The persistent class for the tbl_cuenta_paquete database table.
 * 
 */
@Entity
@Table(name="tbl_cuenta_paquete")
public class TblCuentaPaquete implements Serializable {
	private static final long serialVersionUID = 1L;
	private int cveCtaPaquete;
	private byte bandera;
	private Timestamp fechaAlta;
	private byte status;
	private TblCuenta tblCuenta;
	private TblPaquete tblPaquete;

    public TblCuentaPaquete() {
    }


	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="cve_cta_paquete", unique=true, nullable=false)
	public int getCveCtaPaquete() {
		return this.cveCtaPaquete;
	}

	public void setCveCtaPaquete(int cveCtaPaquete) {
		this.cveCtaPaquete = cveCtaPaquete;
	}


	@Column(nullable=false)
	public byte getBandera() {
		return this.bandera;
	}

	public void setBandera(byte bandera) {
		this.bandera = bandera;
	}


	@Column(name="fecha_alta", nullable=false)
	public Timestamp getFechaAlta() {
		return this.fechaAlta;
	}

	public void setFechaAlta(Timestamp fechaAlta) {
		this.fechaAlta = fechaAlta;
	}


	@Column(nullable=false)
	public byte getStatus() {
		return this.status;
	}

	public void setStatus(byte status) {
		this.status = status;
	}


	//bi-directional many-to-one association to TblCuenta
    @ManyToOne
	@JoinColumn(name="cve_cuenta", nullable=false)
	public TblCuenta getTblCuenta() {
		return this.tblCuenta;
	}

	public void setTblCuenta(TblCuenta tblCuenta) {
		this.tblCuenta = tblCuenta;
	}
	

	//bi-directional many-to-one association to TblPaquete
    @ManyToOne
	@JoinColumn(name="cve_paquete", nullable=false)
	public TblPaquete getTblPaquete() {
		return this.tblPaquete;
	}

	public void setTblPaquete(TblPaquete tblPaquete) {
		this.tblPaquete = tblPaquete;
	}
	
}